home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <LINK REL="stylesheet" TYPE="text/css" HREF="%1css/default.css">
-
- <SCRIPT language="Javascript">
- //LOCALIZATION STRINGS
- var L_DELIM_MSG = "The value cannot be more than one character long.";
- var L_NOT_A_NUMBER = "The value must be a positive whole number.";
- var L_EXCEL_COL_WIDTH_INVALID = "The column width is not valid. Please enter a positive number in the range of 10 to 288 points.";
- </SCRIPT>
-
- <SCRIPT LANGUAGE="JavaScript" SRC="%1js/FormChek.js"></SCRIPT>
-
- <SCRIPT>
- function init()
- {
- var sel = '%2';
- for(var i = 0; i < document.forms['formatForm'].format.options.length; ++i)
- {
- if(document.forms['formatForm'].format.options[i].value == sel)
- {
- document.forms['formatForm'].format.options[i].selected = true;
- break;
- }
- }
-
- if ( document.forms["formatForm"].colwidthisconst != null )
- disableConstColWidth();
- }
-
- function changeFormat(f)
- {
- document.location.replace("%3" + "&format=" + f);
- }
-
- function submitForm()
- {
- // input validation
-
- if(document.forms["formatForm"].format.options[document.forms["formatForm"].format.selectedIndex].value == 8) // character-separated values
- {
- var delimiter = document.forms["formatForm"].delim;
- if(delimiter.value.length > 1)
- {
- alert(L_DELIM_MSG);
- delimiter.focus();
- delimiter.select();
- return;
- }
- }
- else if(document.forms["formatForm"].format.options[document.forms["formatForm"].format.selectedIndex].value == 6) // paginated text
- {
- var lines = document.forms["formatForm"].lines;
- if(!isPositiveInteger(lines.value))
- {
- alert(L_NOT_A_NUMBER);
- lines.focus();
- lines.select();
- return;
- }
- }
- else if ( document.forms["formatForm"].format.options[document.forms["formatForm"].format.selectedIndex].value == 1) // Excel
- {
- if ( document.forms["formatForm"].colwidthisconst[1].checked == true )
- {
- var test = Number( document.forms["formatForm"].colwidth.value );
-
- if ( isNaN( test ) || (test < 10 || test > 288) )
- {
- alert( L_EXCEL_COL_WIDTH_INVALID );
- document.forms["formatForm"].colwidth.focus();
- document.forms["formatForm"].colwidth.select();
- return;
- }
- }
- }
- document.forms['formatForm'].submit();
- }
-
- function resetForm()
- {
- document.location.replace("%4");
- }
-
- function disableConstColWidth()
- {
- var test = document.forms["formatForm"].colwidthisconst[0].checked ;
- document.forms["formatForm"].colwidth.disabled = test;
- }
- </SCRIPT>
-
- </HEAD>
- <BODY LEFTMARGIN="5" RIGHTMARGIN="5" onload='init()'>
-
- <DIV ID="tooltip" STYLE="position:absolute;visibility:hidden;z-index:99;"></DIV>
- <SCRIPT SRC="%1js/helps.js"></SCRIPT>
- <SCRIPT SRC="%1js/tips.js"></SCRIPT>
-
- <span class='listSelected'>Set the Format for the report.</span><br>
-
- <p>
-
- <center>
- <form name='formatForm' method=POST action='%5' onsubmit="submitForm();return false;">
- <table width='90%'>
- <tr><td class='list'>
- </td></tr>
- <tr><td class='list'>
- Format:
- <select name='format' class='menuFormElement' onchange='changeFormat(this.options[this.selectedIndex].value)';>
- <option value='0' selected>Crystal Report
- <option value='1'>Excel
- <option value='9'>Excel (Data Only)
- <option value='2'>Word
- <option value='3'>Acrobat
- <option value='4'>Rich Text
- <option value='5'>Plain Text
- <option value='6'>Paginated Text
- <option value='7'>Tab-separated Values
- <option value='8'>Character-separated Values
- </select>
- </td></tr>
- </table>
-
- <p>
-
- %6
-
- </form>
- </center>
-
- <table align="right" border=0 cellpadding=0>
- <tr valign=center>
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript: submitForm()" onMouseOver="St(7);window.status='';return true;" onMouseOut="Ht()">Update</a></div>
- </td>
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript: resetForm()" onMouseOver="St(8);window.status='';return true;" onMouseOut="Ht()">Reset</a></div>
- </td>
- </tr>
- </table>
-
- </BODY>
- </HTML>
-